package cn.sitcat.springbootshiro.dao;

import cn.sitcat.springbootshiro.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface UserMapper {
    @Select("select * from User where name = #{name}")
    User selectUserByName(@Param("name") String name);

    @Select("select * from User where id = #{id}")
    User selectUserById(@Param("id") Long id);
}